<?php
/*
 * core/visitor_service.php
 *
 * Provide visitor service interface
 */

Service::register( 'VisitorService', 'Visitor Counting/Listing Service', 'helpless' );

require_once( 'database_fct.php' );

class VisitorService extends Service
{
	public function __construct()
	{
		parent::__construct();
		$this->registerMethod( 'getNumber', array(), 'return number of visitor', 'helpless', true );
		$this->registerMethod( 'listVisitor', array(), 'return the list of visitor', 'helpless', false );
	}

	public function getNumber()
	{
		return CoreDBFct::getNumberVisitor();
	}

	public function listVisitor()
	{
		return CoreDBFct::listVisitor();
	}
}

?>
